package com.wl.api.service.business.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wl.api.common.utils.BeanUtils;
import com.wl.api.dto.business.CustomerUserDTO;
import com.wl.api.mapper.business.CustomerUserMapper;
import com.wl.api.model.business.CustomerUser;
import com.wl.api.service.business.ICustomerUserService;

/**
 *
 * CustomerUser 表数据服务层接口实现类
 *
 */
@Service
public class CustomerUserServiceImpl extends ServiceImpl<CustomerUserMapper, CustomerUser> implements ICustomerUserService {

	public CustomerUser getCustomerUser(CustomerUserDTO param) {
		
		return selectOne(new EntityWrapper<CustomerUser>(BeanUtils.copyProperties(param, CustomerUser.class))) ;
	}
	
}